package com.jintian.smart.kernel.module.impl;

import java.net.URL;

final class FactoryURLClassLoader extends SmartUrlClassLoader {
    FactoryURLClassLoader(URL[] urls, ClassLoader parent) {
        super(urls, parent);
    }

    FactoryURLClassLoader(URL[] urls) {
        super(urls);
    }

    public final synchronized Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException {
        // 未来版本已移除，检查逻辑以后再处理
        //        SecurityManager sm = System.getSecurityManager();
        //        if (sm != null) {
        //            int i = className.lastIndexOf('.');
        //            if (i != -1)
        //                sm.checkPackageAccess(className.substring(0, i));
        //        }
        return super.loadClass(className, resolve);
    }
}
